Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix volume race condition #71

Merged
merged 4 commits into from
Feb 13, 2024
Merged

Conversation

christopherwharrop-noaa
Copy link
Collaborator

@christopherwharrop-noaa christopherwharrop-noaa commented Feb 13, 2024

This PR uses the nocopy attribute for shared mounts in docker compose to remove the race condition caused by multiple containers trying to populate /home at startup time. This change sets the frontend container to be the one to write to the volume, and the other containers do not attempt to update /home at startup. This works because the initial contents of /home are the same on all containers. Closes #70

@christopherwharrop-noaa
Copy link
Collaborator Author

@NaureenBharwaniNOAA - This is ready for a look.

@christopherwharrop-noaa christopherwharrop-noaa merged commit 89ab87d into main Feb 13, 2024
5 checks passed
@christopherwharrop-noaa christopherwharrop-noaa deleted the feature/fix-volume-race branch February 13, 2024 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Container /home volume race condition
2 participants